﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace CaterpillarRover
{
    public partial class ObjectFollowerControllerUC : UserControl
    {
        private ObjectFollowingController followingController;

        public ObjectFollowingController FollowingController
        {
            get { return followingController; }
            set { followingController = value; }
        }

        public ObjectFollowerControllerUC()
        {
            InitializeComponent();
        }

        private void btnStartLog_Click(object sender, EventArgs e)
        {
            if (followingController != null)
            followingController.StartLogging();
        }

        private void btnStopLog_Click(object sender, EventArgs e)
        {
            if (followingController != null)
                followingController.StopLogging();
        }

        private void btnClearPath_Click(object sender, EventArgs e)
        {
            if (followingController != null)
                followingController.ClearHistoricalPath();
        }

        private void btnStartFollow_Click(object sender, EventArgs e)
        {
            if (followingController != null)
                followingController.StartFollowing();
        }

        private void btnPauseFollow_Click(object sender, EventArgs e)
        {

        }

        private void btnStopFollow_Click(object sender, EventArgs e)
        {
            
        }

    }
}
